package nl.nhl.idp.Components.Network;

/**
 * Opcodes for the protocol
 * @author Mark van der Wal
 *
 */
public enum ProtocolOpcodes 
{
	// messages send from the tablet
	T_TURN (100),
	T_DRIVE (101),
	T_COMMAND (102),
	
	// messages send from the vehicle
	V_SENSOR (110),
	V_HELLING (120),
	V_ACCU (121),
	V_MOTOR (122),
	V_MAZE_SENSOR (123);
	
	// message sent from control to guest
	//V_GUEST (130);
	
	// data members
	private int mCode;
	
	// overloaded constructor
	private ProtocolOpcodes(int value)
	{
		this.mCode = value;
	}
	
	public int Opcode() { return mCode; }
}
